package com.woniuxy.exception;

import com.woniuxy.util.ResponseCode;
import lombok.Getter;

@Getter
public class CustomException extends RuntimeException {
    private final ResponseCode errorCode;

    public CustomException(ResponseCode errorCode) {
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }
    public CustomException(ResponseCode errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
}
